<template>
	<view class="layout">
		<view class="header">
			<view class="title">
				<view>资讯</view>
				<u-icon class="icon" name="bell-fill" size="36"></u-icon>
			</view>
			<view class="tabs">
				<view class="tabs-item" :class="cur==index?'active':''" v-for="(item,index) in tabList" :key="index" @click="changeTab(index)"><text>{{item.name}}</text></view>
			</view>
		</view>
		<view class="info" v-if="cur == 0">
			<view class="info-item">
				<view class="title">
					<view class="left">
						<u-avatar size="80rpx" :src="src"></u-avatar>
						<text>士大夫</text>
					</view>
					<view class="time">2023-11-29</view>
				</view>
				<view class="content">
					<view class="font ellipsis2">手动阀实打实的撒旦发射点DSSDFAE撒旦发射点热通过五七二七为</view>
					<view class="img">
						<image src="../../static/images/bgCar03.png" mode=""></image>
					</view>
				</view>
				<view class="footer">
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						分享
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						评论
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						点赞
					</view>
				</view>
			</view>
			<view class="info-item">
				<view class="title">
					<view class="left">
						<u-avatar size="80rpx" :src="src"></u-avatar>
						<text>士大夫</text>
					</view>
					<view class="time">2023-11-29</view>
				</view>
				<view class="content">
					<view class="font ellipsis2">手动阀实打实的撒旦发射点DSSDFAE撒旦发射点热通过五七二七为</view>
					<view class="img">
						<image src="../../static/images/bgCar03.png" mode=""></image>
					</view>
				</view>
				<view class="footer">
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						分享
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						评论
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						点赞
					</view>
				</view>
			</view>
			<view class="info-item">
				<view class="title">
					<view class="left">
						<u-avatar size="80rpx" :src="src"></u-avatar>
						<text>士大夫</text>
					</view>
					<view class="time">2023-11-29</view>
				</view>
				<view class="content">
					<view class="font ellipsis2">手动阀实打实的撒旦发射点DSSDFAE撒旦发射点热通过五七二七为</view>
					<view class="img">
						<image src="../../static/images/bgCar03.png" mode=""></image>
					</view>
				</view>
				<view class="footer">
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						分享
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						评论
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						点赞
					</view>
				</view>
			</view>
		</view>
		<view class="info" v-if="cur == 1">
			<view class="info-item">
				<view class="content">
					<view class="font ellipsis2">手动阀实打实的撒旦发射点DSSDFAE撒旦发射点热通过五七二七为</view>
					<view class="img sc">
						<image src="../../static/images/bgCar03.png" mode=""></image>
						<view class="liuLan">
							<view class="title">2023-09-26</view>
							<view class="see">
								<u-icon class="icon" name="eye" size="36"></u-icon>
								<text>1589</text>
							</view>
						</view>
					</view>
				</view>
				<view class="footer">
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						分享
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						评论
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						点赞
					</view>
				</view>
			</view>
			<view class="info-item">
				<view class="content">
					<view class="font ellipsis2">手动阀实打实的撒旦发射点DSSDFAE撒旦发射点热通过五七二七为</view>
					<view class="img sc">
						<image src="../../static/images/bgCar03.png" mode=""></image>
						<view class="liuLan">
							<view class="title">2023-09-26</view>
							<view class="see">
								<u-icon class="icon" name="eye" size="36"></u-icon>
								<text>1589</text>
							</view>
						</view>
					</view>
				</view>
				<view class="footer">
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						分享
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						评论
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						点赞
					</view>
				</view>
			</view>
		</view>
		<view class="info" v-if="cur == 2">
			<view class="info-item">
				<view class="content system">
					<view class="title ellipsis1">智融金科｜AI智能版本更新｜一图读懂</view>
					<view class="font ellipsis2">智融金科APP迎来史诗级1.86版本更新，此次更新主打“超大桶”，升级说明超长</view>
					<view class="img sc">
						<image src="../../static/images/bgCar03.png" mode=""></image>
					</view>
				</view>
				<view class="footer">
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						分享
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						评论
					</view>
					<view>
						<u-icon class="icon" name="bell-fill" size="36"></u-icon>
						点赞
					</view>
				</view>
			</view>
		</view>
		<view class="info" v-if="cur == 3">
			<view class="tutorial">
				<view class="t-title">秒懂智融金科</view>
				<view class="img">
					<image src="../../static/images/bgCar03.png" mode=""></image>
					<image src="../../static/images/bgCar03.png" mode=""></image>
				</view>
			</view>
			<view class="tutorial">
				<view class="t-title">常见问题</view>
				<view class="item">
					<u-cell-group :border="false">
						<u-cell title="如何在系统里操作成为会员" :isLink="true" titleStyle="fontSize: 28rpx">
							<view slot="right-icon" class="u-slot-title">
								<u-icon name="arrow-right" size="36"></u-icon> 
							</view>
						</u-cell>
						<u-cell title="如何APP内支付定金并签订合同" :isLink="true">
							<view slot="right-icon" class="u-slot-title">
								<u-icon name="arrow-right" size="36"></u-icon> 
							</view>
						</u-cell>
						<u-cell title="苹果手机如何保存已下载的合同" :isLink="true">
							<view slot="right-icon" class="u-slot-title">
								<u-icon name="arrow-right" size="36"></u-icon> 
							</view>
						</u-cell>
						<u-cell title="如何APP内支付定金并签订合同" :isLink="true">
							<view slot="right-icon" class="u-slot-title">
								<u-icon name="arrow-right" size="36"></u-icon> 
							</view>
						</u-cell>
						<u-cell title="经纪人如何进行佣金提现操作" :isLink="true">
							<view slot="right-icon" class="u-slot-title">
								<u-icon name="arrow-right" size="36"></u-icon> 
							</view>
						</u-cell>
						<u-cell title="如何在直播中与主播进行连线" :isLink="true" :border="false">
							<view slot="right-icon" class="u-slot-title">
								<u-icon name="arrow-right" size="36"></u-icon> 
							</view>
						</u-cell>
					</u-cell-group>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				tabList: [{
						name: '会员动态',
					}, {
						name: '市场资讯'
					}, {
						name: '系统公告'
					}, {
						name: '操作教程',
					},
				],
				cur: 0,
				src: ''
			}
		},
		methods: {
			changeTab(e){
				this.cur = e
			}
		}
	}
</script>

<style lang="less" scoped>
	.header{
		padding: 30rpx 0;
		width: 100%;
		background-image: linear-gradient(75deg,rgba(255, 206, 185, 0.7) ,rgba(255, 240, 234, 0.2), rgba(255, 206, 185, 0.3));
		.title{
			position: relative;
			display: flex;
			justify-content: center;
			align-items: center;
			width: 100%;
			height: 90rpx;
			color: #333;
			font-family: Source Han Sans CN;
			font-size: 36rpx;
			font-style: normal;
			font-weight: 600;
			.icon{
				position: absolute;
				top: 50%;
				right: 30rpx;
				transform: translateY(-50%);
			}
		}
		.tabs{
			display: flex;
			justify-content: flex-start;
			align-items: center;
			margin-top: 20rpx;
			&-item{
				width: 25%;
				text-align: center;
				font-size: 28rpx;
				color: #333;
				text{
					color: #666;
					text-align: center;
					font-family: Source Han Sans CN;
					font-size: 28rpx;
					font-style: normal;
					font-weight: 400;
					padding-bottom: 15rpx;
				}
				&.active{
					text{
						position: relative;
						color: #FF6A2B;
						text-align: center;
						font-family: Source Han Sans CN;
						font-size: 32rpx;
						font-style: normal;
						font-weight: 500;
						&:before{
							content: '';
							position: absolute;
							left: 50%;
							bottom: 0;
							transform: translateX(-50%);
							width: 60rpx;
							height: 4rpx;
							background: #FF6A2B;
							border-radius: 5rpx;
						}
					}
				}
			}
		}
	}
	.info {
		&-item{
			background: #fff;
			border-radius: 16rpx;
			margin-bottom: 20rpx;
			padding: 30rpx;
			.title{
				display: flex;
				justify-content: space-between;
				align-items: center;
				.left{
					display: flex;
					justify-content: flex-start;
					align-items: center;
					text{
						color: #333;
						font-family: Source Han Sans CN;
						font-size: 30rpx;
						font-style: normal;
						font-weight: 400;
						margin-left: 15rpx;
					}
				}
				.time{
					color: #999;
					font-family: Source Han Sans CN;
					font-size: 28rpx;
					font-style: normal;
					font-weight: 400;
				}
			}
			.content{
				margin-top: 20rpx;
				.title{
					color: #333;
					font-family: Source Han Sans CN;
					font-size: 28rpx;
					font-style: normal;
					font-weight: 400;
					margin-bottom: 10rpx;
				}
				.font{
					color: #333;
					font-family: Source Han Sans CN;
					font-size: 28rpx;
					font-style: normal;
					font-weight: 400;
					line-height: 45rpx;
				}
				&.system{
					.font{
						font-size: 24rpx;
					}
				}
				.img{
					padding: 30rpx 0;
					image{
						height: 288rpx;
						width: 208rpx;
						border-radius: 16rpx;
					}
				}
				.sc{
					width: 100%;
					image{
						width: 100%;
						padding: 15rpx 0;
					}
					.liuLan{
						display: flex;
						justify-content: space-between;
						align-items: center;
						color: #999;
						font-size: 26rpx;
						.see{
							display: flex;
							justify-content: flex-start;
							align-items: center;
							text{
								margin-left: 10rpx;
							}
						}
					}
				}
			}
			.footer{
				display: flex;
				justify-content: space-around;
				align-items: center;
				margin-top: 20rpx;
				view{
					// width: 33.3333%;
					display: flex;
					justify-content: center;
					align-items: center;
					color: #333;
					font-family: Source Han Sans CN;
					font-size: 28rpx;
					font-style: normal;
					font-weight: 400;
				}
			}
		}
		.tutorial{
			padding: 30rpx;
			.t-title{
				color: #333;
				text-align: left;
				font-family: Source Han Sans CN;
				font-size: 32rpx;
				font-style: normal;
				font-weight: 500;
			}
			.img{
				display: flex;
				justify-content: space-between;
				margin-top: 20rpx;
				image{
					height: 168rpx;
					margin-right: 30rpx;
					border-radius: 16rpx;
					&:last-child{
						margin-right: 0;
					}
				}
			}
			.item{
				margin-top: 30rpx;
			}
		}
	}
</style>